package designpatterns.factory.abstact;

/**
 * @program: MyTank
 * @description:
 * @author: 王术平
 * @create: 2021-01-11 22:46
 **/
public class MagicFactory extends AbstractFactory{
    @Override
    Food createFood() {
        return new Mushroom();
    }

    @Override
    Weapon createWeapon() {
        return new MagicStick();
    }

    @Override
    Vehicle createVehicle() {
        return new Broom();
    }
}
